<?php

namespace App\Model\Exam;

use App\Model\Model;
use Hyperf\Database\Model\SoftDeletes;

/**
 * @property integer $id
 * @property integer $start_time
 * @property string $realname
 * @property integer $submit_time
 * @property string $tel
 * @property text $desc
 * @property string $title
 * @property json $result
 * @property string $time
 * @property datetime $create_time
 * @property datetime $update_time
 * @property datetime $delete_time
 */
class ExamTest extends Model
{
    use SoftDeletes;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'exam_test';

    protected $fillable = [
        'start_time',
        'realname',
        'submit_time',
        'tel',
        'gender',
        'grade',
        'subject',
        'desc',
        'title',
        'result',
        'report',
        'is_show_report',
        'time',
        'create_time',
        'update_time',
        'delete_time',
    ];

    public function ExamTestResult()
    {
        return $this->hasMany(ExamTestResult::class, 'exam_test_id', 'id');
    }
}
